package com.zhengjiang.log4j2.demo.model;

import com.zhengjiang.log4j2.demo.model.enums.ResponseCodeEnum;
import lombok.Data;

/**
 * @ClassName ResultSupport
 * @Description
 * @Author zhengjiang(99514925 @ qq.com)
 * @Date 2020-06-24 17:07
 * @Version V1.0
 **/
@Data
public class ResultSupport {
    private boolean success = true;
    private String msg;
    private String code;

    public static ResultSupport success(){
        ResultSupport result = new ResultSupport();
        result.setCode(ResponseCodeEnum.SUCCESS.getCode());
        result.setMsg(ResponseCodeEnum.SUCCESS.getMsg());
        return result;
    }
}
